package com.wandian.notepad.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.wandian.notepad.R;
import com.wandian.notepad.bean.NoteTypeBean;

/**
 * NotepadGridRecycleAdapter-适配器
 */
public class NotepadGridRecycleAdapter extends BaseQuickAdapter<NoteTypeBean, BaseViewHolder> {

    public NotepadGridRecycleAdapter(int layoutResId) {
        super(layoutResId);
    }


    @Override
    protected void convert(BaseViewHolder helper, NoteTypeBean item) {
        helper.setText(R.id.tv_title, item.getType()+"")
                .setText(R.id.tv_number, item.getCounts()+"");
    }

}
